//
//  Bundle+Extension.swift
//  反射机制
//
//  Created by James on 2017/5/30.
//  Copyright © 2017年 James. All rights reserved.
//

import Foundation

extension Bundle{
    func  nameSpace() -> String {
//        let spaceName = Bundle.main.infoDictionary?["CFBundleName"] as? String ?? ""
        let spaceName = infoDictionary?["CFBundleName"] as? String ?? ""
        return spaceName
    }

    //计算型属性
    var nameSpace2 : String {
        return infoDictionary?["CFBundleName"] as? String ?? ""
    }
    
}
